package com.lzy.product.common.util;

import com.lzy.framework.tools.commons.PropertiesUtils;

import java.util.Properties;

/**
 * @auther by  ellengou .
 * @date on 2017/5/19 0019.
 * @project dragon-tour.
 */
public  class PasswordUtil {

    public static String defaultPass = null;//默认密码

    public static String saltSize = null; // 盐长度

    public static String hashAlgorithm = null;//加密方法

    public static String hashIntegrations = null;//哈希次数

    private PasswordUtil(){}

    static {
        Properties properties =  PropertiesUtils.load("props/config.properties");
        defaultPass = properties.getProperty("default.password");
        saltSize = properties.getProperty("salt.size");
        hashAlgorithm =  properties.getProperty("hash.algorithm");
        hashIntegrations =   properties.getProperty("hash.integrations");
    }
}
